<?php 
/**
 * 后台班级管理 模型
 */
#定义命名空间
namespace Admin\Model;
#引用Thinkphp下的基础Model
use Think\Model;
class ClassModel extends Model{
    //自动验证
    public $_validate = array(
            array('name','require','请填写班级名称!'),
            array('class_type','0','请选择班级级别!','0','notequal'),
            array('class_manager','0','请选择班主任!','0','notequal'),
            array('life_teacher','0','请选择生活老师!','0','notequal'),
            array('class_teacher','0','请选择配班老师!','0','notequal'),
            array('price','require','请填写报名费用!'),
            array('price','currency','报名费用为货币!'),
            array('num','require','请填写报名人数!'),
            array('num','number','报名人数为数字!'),
            array('desc','require','请填写班级简介!'),
        );
}